MkFootNotes
Node containing a list of MkFootNotes.¶
Name | Children | Inherits |
---|---|---|
MkContainer mknodes.basenodes.mkcontainer A node containing other MkNodes. |
graph TD
94721312430336["mkfootnotes.MkFootNotes"]
94721311697232["mkcontainer.MkContainer"]
94721308848336["mknode.MkNode"]
94721311766592["node.Node"]
140564252373184["builtins.object"]
94721311697232 --> 94721312430336
94721308848336 --> 94721311697232
94721311766592 --> 94721308848336
140564252373184 --> 94721311766592
/home/runner/work/mknodes/mknodes/mknodes/basenodes/mkfootnotes/metadata.toml
[metadata]
icon = "octicon:list-ordered-16"
name = "MkFootNotes"
[requirements.extension.footnotes]
[examples.regular]
title = "Regular"
python = """
node = MkFootNotes()
page += "The MkFootNotes node aggregates footnotes[^1]."
node[1] = r"Footnotes are numbered, can be set via `__setitem__`."
node[2] = r"They can also get nested[^3]."
node[3] = mk.MkAdmonition("And they can also contain other Markdown.")
node
"""
[fragments.footnote]
template = """
[^{{ footnote.num }}]
{{ node.items | join("\n") | indent(first=True) }}
"""
[output.markdown]
template = """
{{ node.items | sort(attribute="num") | join }}
"""
[output.rst]
template = """
.. rubric:: Footnotes
{% for item in node.items | sort(attribute="num") %}
.. {{ item }}
"""